import Login from "./login/login";
import {HashRouter, Route,Switch} from "react-router-dom";
import Register from "./login/register";
import Nav from "./nav/nav";
import Cinema from "./cinema/cinema.jsx";
import Seat from "./seat/seat";

function App() {
  return (
    <>
      <HashRouter className="App">
        {/* HashRouter是使用路由的模式 */}
          <Switch>
            {/* switch是精度匹配 */}
              <Route exact path="/" component={Login}></Route>
              <Route path="/reg" component={Register}></Route>
              <Route path="/nav" component={Nav}></Route>
              <Route path="/cin" component={Cinema}></Route>
              <Route path="/seat" component={Seat}></Route>
          </Switch>
      </HashRouter>
    </>
  );
}

export default App;